package com.work.keep.datas;

/**
 * Created by dllo on 16/1/21.
 */
public class FragmentUserData {
    /**
     * ok : true
     * data : {"_id":"56793bb6032d7f5d01d691b4","currentCombo":1,"totalTrainingDay":1,"maxCombo":1,"lastTraining":"2016-01-10T09:24:45.000Z","totalTraining":1,"totalCalorie":34,"totalDuration":11}
     * errorCode : 0
     * now : 2016-01-21T02:12:43.909Z
     * version : 1.0.0
     */

    private boolean ok;
    /**
     * _id : 56793bb6032d7f5d01d691b4
     * currentCombo : 1
     * totalTrainingDay : 1
     * maxCombo : 1
     * lastTraining : 2016-01-10T09:24:45.000Z
     * totalTraining : 1
     * totalCalorie : 34
     * totalDuration : 11
     */

    private DataEntity data;
    private int errorCode;
    private String now;
    private String version;

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isOk() {
        return ok;
    }

    public DataEntity getData() {
        return data;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getNow() {
        return now;
    }

    public String getVersion() {
        return version;
    }

    public class DataEntity {
        private String _id;
        private int currentCombo;
        private int totalTrainingDay;
        private int maxCombo;
        private String lastTraining;
        private int totalTraining;
        private int totalCalorie;
        private int totalDuration;

        public void set_id(String _id) {
            this._id = _id;
        }

        public void setCurrentCombo(int currentCombo) {
            this.currentCombo = currentCombo;
        }

        public void setTotalTrainingDay(int totalTrainingDay) {
            this.totalTrainingDay = totalTrainingDay;
        }

        public void setMaxCombo(int maxCombo) {
            this.maxCombo = maxCombo;
        }

        public void setLastTraining(String lastTraining) {
            this.lastTraining = lastTraining;
        }

        public void setTotalTraining(int totalTraining) {
            this.totalTraining = totalTraining;
        }

        public void setTotalCalorie(int totalCalorie) {
            this.totalCalorie = totalCalorie;
        }

        public void setTotalDuration(int totalDuration) {
            this.totalDuration = totalDuration;
        }

        public String get_id() {
            return _id;
        }

        public int getCurrentCombo() {
            return currentCombo;
        }

        public int getTotalTrainingDay() {
            return totalTrainingDay;
        }

        public int getMaxCombo() {
            return maxCombo;
        }

        public String getLastTraining() {
            return lastTraining;
        }

        public int getTotalTraining() {
            return totalTraining;
        }

        public int getTotalCalorie() {
            return totalCalorie;
        }

        public int getTotalDuration() {
            return totalDuration;
        }
    }
}
